﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using WebServiceExtensions.CallCounterExtension;

namespace CallCounterExtConsoleTester
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
            CallCounterManager.RegisterCallCounterExtension();
            TestService.TestService test = new TestService.TestService();
            test.HelloWorld();
            test.HelloWorld();
            test.HelloWorld();
            //long typeCallCounter = LogExtensionManager.CallCounterManager.GetCountForType(test.GetType().FullName);
            long typeCallCounter = CallCounterManager.CallCounters.GetCountForType(test.GetType().FullName);
            Console.Write(typeCallCounter);
            Console.Read();
            //WebServiceExtensionConfigurationView configView = new WebServiceExtensionConfigurationView();
            //TypeData data = configView.SoapMessageLogger.SoapMessageLogSettings.Types[0];
            //Method method = data.Methods[0];
        }
    }
}
